package com.riguz.forks.framework.db.dbutils;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.apache.commons.dbutils.ResultSetHandler;

public class AffectedRowsHandler implements ResultSetHandler<Long> {
    @Override
    public Long handle(ResultSet rs) throws SQLException {

        if (rs.next())
            return rs.getLong(1);
        return null;
    }

}
